package com.hopes.bizz.risk.gis.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/23 13:34
 */

@Data
public class RiskHidCountStatistics {

    private List<PieStatistics> data = new ArrayList<>();

    public void addData(String name, int value) {
        PieStatistics pieStatistics = new PieStatistics();
        pieStatistics.setName(name);
        pieStatistics.setValue(value);
        this.data.add(pieStatistics);
    }
}
